import fetch from './fetch.js';
export const addorg= data=>fetch('org/add',data);
export const updateorg=data=>fetch('/org/update',data);
export const deleteorg=data=>fetch('org/delete',data);
export const joinorg=data=>fetch('org/join',data);
export const orgdetail=data=>fetch('org/detail',data);
export const orglist=data=>fetch('org/list',data);
export const leaveorg=data=>fetch('org/leave',data);


export const addsubject=data=>fetch('subject/add',data);
export const updatesubject=data=>fetch('subject/update',data);
export const subjectlist= data => fetch('subject/list',data);
export const deletesubject=data=>fetch('subject/delete',data);
export const subjectqueryByTag=data=>fetch('subject/queryByTag',data);


export const updateemp=data=>fetch('emp/update',data);
export const updateorgandemp=data=>fetch('org/updateorgandemp',data);
export const emplist=data=>fetch('emp/list',data);
export const addemp=data=>fetch('emp/add',data);
export const login=data=>fetch('emp/login',data);
export const updatePwd=data=>fetch('emp/updatePwd',data);
export const empregister=data=>fetch('emp/register',data);
export const queryEmpByTag=data=>fetch('emp/queryByTag',data);



export const roomlist=data=>fetch('room/list',data);
export const addroom=data=>fetch('room/add',data);
export const updateroom=data=>fetch('room/update',data);
export const deleteroom=data=>fetch('room/delete',data);
export const detailroom=data=>fetch('room/detail',data);



export const addnotice=data=>fetch('notice/add',data);
export const updatenotice=data=>fetch('notice/update',data);
export const detailnotice=data=>fetch('notice/detail',data);
export const deletenotice=data=>fetch('notice/delete',data);
export const noticelist=data=>fetch('notice/list',data);





export const getmyrules=data=>fetch('rule/myrules',data);
export const addstu=data=>fetch('stu/add',data);
export const querystus=data=>fetch('stu/query',data);
export const updatestu=data=>fetch('stu/update',data);
export const stutypetotal=data=>fetch('stu/typetotal',data);
export const studetail=data=>fetch('stu/detail',data);
export const querystusByTag=data=>fetch('stu/queryByTag',data);
export const getAccountOfStu=data=>fetch('account/getaccount',data);
export const stusOfCls=data=>fetch('account/stusOfCls',data);

export const account=data=>fetch('account/getAccount',data);

export const addabsent=data=>fetch('absent/add',data);
export const dealAbsentList=data=>fetch('absent/dealAbsentList',data);
export const cancelAskAbsent=data=>fetch('absent/cancelAskAbsent',data);
export const confirmAbsent=data=>fetch('absent/confirmAbsent',data);

export const checkPeriod=data=>fetch('check/checkPeriod',data);
export const checkTotal=data=>fetch('check/checkTotal',data);
export const checkList=data=>fetch('check/checkList',data);
export const waitCheckList=data=>fetch('check/waitCheckList',data);





export const clslist=data=>fetch('cls/list',data);
export const addCls=data=>fetch('cls/add',data);
export const updatecls=data=>fetch('cls/update',data);
export const nextperiodOfcls=data=>fetch('periodrecord/nextrecord',data);
export const clsdetail=data=>fetch('cls/detail',data);
export const getstusOfcls=data=>fetch('cls/stusOfcls',data);
export const clsfinish=data=>fetch('cls/finish',data);


export const addperiodrule=data=>fetch('periodrule/add');
export const periodrulelist=data=>fetch('periodrule/list');
export const updateperiodrule=data=>fetch('periodrule/update');
export const deleteperiodrule=data=>fetch('periodrule/delete');
export const detailperiodrule=data=>fetch('periodrule/detail');



export const addperiodrecord=data=>fetch('periodrecord/add');
export const deleteperiodrecord=data=>fetch('periodrecord/delete');






export const stucheck=data=>fetch('check/add',data);
export const queryContractPage=data=>fetch('contract/queryContractPage',data);
export const addContract=data=>fetch('contract/addContract',data);
export const contracetotal=data=>fetch('contract/feetotal',data);










































